
import mysql2 from 'mysql2'
import dbConfig from '../config/dbConfig'

//创建数据库连接池
const promisePool = mysql2.createPool(dbConfig).promise()

export default promisePool